f = open("hw6/test1.hex")
a = f.read()
f.close()
a = [hex(int(a[i:i+4],2))[2:] for i in range(0,len(a),4)]
b = [''.join(a[i:i+8]) for i in range(0,len(a),8)]
f = open("hw6/test1.hex","w")
for i in b:
	f.write(i+"\n")
f.close()

